splitting a list of strings in python